package com.yfh.study.manager.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfh.data.system.entity.Users;
import com.yfh.study.manager.dao.UsersDao;
import com.yfh.study.manager.service.UsersService;
import org.springframework.stereotype.Service;

/**
 * 登录用户信息(Users)表服务实现类
 *
 * @author makejava
 * @since 2022-09-01 16:59:39
 */
@Service("usersService")
public class UsersServiceImpl extends ServiceImpl<UsersDao, Users> implements UsersService {

    /**
     * 查询登录信息
     * @param users
     * @return
     */
    @Override
    public Users loginCheck(Users users) {
        return super.query().eq("username",users.getUsername()).eq("password",users.getPassword()).one();
    }
}

